import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.FlowLayout;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;

public class T2 extends JFrame{
    JPanel jp1,jp2;
    JTextArea jta1,jta2;
    public T2(String title) {
        super(title);
        setLayout(new BorderLayout());
        setBounds(100,100,800,400);
        Container c=getContentPane();
        c.setBackground(Color.darkGray);
        jp1=new JPanel();
        jp2=new JPanel();
        jta1=new JTextArea(2,2);
        jta2=new JTextArea(2,2);
        jp1.add(jta1);
        jp2.add(jta2);

        //add(jp1);add(jp2);
        add(jta1,BorderLayout.NORTH);add(jta2,BorderLayout.SOUTH);
        setVisible(true);
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
    public static void main(String[] args) {
        T2 a=new T2("test2");
    }
}
